package com.xshbbs.entity;

import java.util.List;

public class Block {
	
	private Integer id;
	private String name;
	private Integer pid;
	private Topic topic;
	private List<Topic> topicList; 
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public Topic getTopic() {
		return topic;
	}
	public void setTopic(Topic topic) {
		this.topic = topic;
	}
	public List<Topic> getTopicList() {
		return topicList;
	}
	public void setTopicList(List<Topic> topicList) {
		this.topicList = topicList;
	}
	@Override
	public String toString() {
		return "Block [id=" + id + ", name=" + name + ", pid=" + pid + ", topic=" + topic + ", topicList=" + topicList
				+ "]";
	}
	
}
